<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台登录-X-admin1.1</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="{$run}css/font.css">
    <link rel="stylesheet" href="{$run}css/xadmin.css">
    <link rel="stylesheet" href="{$run}css/swiper.min.css">
    <script type="text/javascript" src="{$static}jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="{$run}js/swiper.jquery.min.js"></script>
    <script src="{$run}lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="{$run}js/xadmin.js"></script>

</head>
<body>
    <div class="login-logo"><h1>X-ADMIN V1.1</h1></div>
    <div class="login-box">
        <form class="layui-form layui-form-pane" method="post">
              
            <h3>登录你的帐号</h3>
            {if $error}
                  <p style="color:red">{$error}</p>
            {else}
              
            {/if}
            <label class="login-title" for="username">帐号</label>
            <div class="layui-form-item">
                <label class="layui-form-label login-form"><i class="iconfont">&#xe6b8;</i></label>
                <div class="layui-input-inline login-inline">
                  <input type="text" name="users_name" lay-verify="required" placeholder="请输入你的帐号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <label class="login-title" for="password">密码</label>
            <div class="layui-form-item">
                <label class="layui-form-label login-form"><i class="iconfont">&#xe82b;</i></label>
                <div class="layui-input-inline login-inline">
                  <input type="password" name="users_password" lay-verify="required" placeholder="请输入你的密码" autocomplete="off" class="layui-input">
                </div>
            </div>
             <label class="login-title" for="username">验证码</label>
            <div class="layui-form-item">
                <label class="layui-form-label login-form"><i class="layui-icon">&#xe60d;</i></label>
                <div  class="layui-input-inline login-inline" style="width:40%">
                  <input type="text"  name="vcode" lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                </div>
                
                    <a  href="javascript:;" style="float:right;display:block"><img src="{captcha_src()}" onclick="this.src='{captcha_src()}?'+Math.random();" width="120" height="35" alt="captcha" style="border-radius: 5px;"/></a>
                
            </div>
            <div class="form-actions" style="margin-top:44px">
                <button class="btn btn-warning pull-right" lay-submit lay-filter="login"  type="submit">登录</button> 
               
            </div>
        </form>
    </div>
    <div class="bg-changer">
        <div class="swiper-container changer-list">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><img class="item" src="{$run}images/a.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/b.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/c.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/d.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/e.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/f.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/g.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/h.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/i.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/j.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="{$run}images/k.jpg" alt=""></div>
                <div class="swiper-slide"><span class="reset">初始化</span></div>
            </div>
        </div>
        <div class="bg-out"></div>
        <div id="changer-set"><i class="iconfont">&#xe696;</i></div>   
    </div>
    <script>
        // $(function  () {
        //     layui.use('form', function(){
        //       var form = layui.form();
        //       //监听提交
        //       form.on('submit(login)', function(data){
        //         layer.msg(JSON.stringify(data.field),function(){
        //             location.href='index.html'
        //         });
        //         return false;
        //       });
        //     });
        // })
        
    </script>
    
</body>
</html>